#!/bin/sh

# Performs a very simple loopback test - run on one machine, sends to self
# on board 0

mx_interp -v << EOF

open e1 any 1 0x1234
target target $(hostname):0 0 1 0x1234

# post a receive, match = x123
recv r1 e1 16 0 0x123 none 1

# send to our receive
send s1 e1 target 16 0 0x123 1

# wait for both to complete
test r1
test s1

close e1

EOF
